package com.clear.honghefinance.biz.modules.assist_calculate_summary.converter;

import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.CreateAssistCalculateCustomerDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.dto.UpdateAssistCalculateCustomerDTO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.entity.AssistCalculateCustomer;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.GetAssistCalculateCustomerVO;
import com.clear.honghefinance.biz.modules.assist_calculate_summary.domain.vo.ListAssistCalculateCustomerVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper
public interface AssistCalculateCustomerConvertor {

    AssistCalculateCustomerConvertor INSTANCE = Mappers.getMapper(AssistCalculateCustomerConvertor.class);

    AssistCalculateCustomer convertDTOToEntity(CreateAssistCalculateCustomerDTO dto);

    AssistCalculateCustomer convertDTOToEntity(UpdateAssistCalculateCustomerDTO dto);

    List<ListAssistCalculateCustomerVO> convertEntityToVO(List<AssistCalculateCustomer> entities);

    GetAssistCalculateCustomerVO convertEntityToVO(AssistCalculateCustomer entity);
}
